/**
 * 
 */
package servlets;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

/**
 * @author hozakan
 *
 */
public abstract class BaseServlet extends HttpServlet {
	
	public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
		
		specificDoGet(request, response);
	}
	
	public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
		
		specificDoPost(request, response);
	}

	protected abstract void specificDoGet(HttpServletRequest request,
			HttpServletResponse response);

	protected abstract void specificDoPost(HttpServletRequest request,
			HttpServletResponse response);
	
}
